package practice.w830;

public class OperDemo1 {
    public static void main(String[] args) {
        System.out.println(4%2);//2
        System.out.println(2%3);//0
        System.out.println(0%5);//0

        int a=6,b=6;
        a++;//a=a+1
        ++b;//b=b+1
        System.out.println(a);//7
        System.out.println(b);//7

        int c=6,d=6;
        c--;
        --d;
        System.out.println(c);//5
        System.out.println(d);//5

        int e=6,f=6;
        int g=e++;
        int h=++f;
        System.out.println(e);//7
        System.out.println(f);//7
        System.out.println(g);//6
        System.out.println(h);//7

        int i=5,j=5;
        int k=i--;
        int l=--j;
        System.out.println(i);//4
        System.out.println(j);//4
        System.out.println(k);//5
        System.out.println(l);//4

//        System.out.println(4%2);//2
//        System.out.println(2%3);//0
//        System.out.println(0%5);//0
//
//        int a=6,b=6;
//        a++;//a=a+1
//        ++b;//b=b+1
//        System.out.println(a);//7
//        System.out.println(b);//7
//
//        int c=6,d=6;
//        c--;
//        --d;
//        System.out.println(c);//5
//        System.out.println(d);//5
//
//        int e=6,f=6;
//        int g=e++;
//        int h=++f;
//        System.out.println(e);//7
//        System.out.println(f);//7
//        System.out.println(g);//6
//        System.out.println(h);//7
//
//        int i=5,j=5;
//        int k=i--;
//        int l=--j;
//        System.out.println(i);//4
//        System.out.println(j);//4
//        System.out.println(k);//5
//        System.out.println(l);//4
    }
}
